
<html>

<head>
<?php 
	$_SESSION['hallpass'] = true;
	/*safe secret to avoid spoofed form submittion 
	 	if you look closely you can see a hidden type that will send a secret gift* */
	require_once "security.php";
	session_start();
	
	$secret = spoof_prevention();
	/*$arr = encrypt_me(0,0,1);
	$secret = $arr['password'];
	//$secret = md5(uniqid(rand(), true));
	$_SESSION['secret'] = $secret;*/
?>
</head>
<body>

<form action="register.php" method="post">
User Name: <input type="text" name="email" /><br>
Password: <input type="password" name="password" /><br>
first name: <input type="text" name="fname" /><br>
last name: <input type="text" name="lname" /><br>
id: <input type="text" name="id" /><br>
b day: <input type="text" name="bday" /><br>
phone: <input type="text" name="phone" /><br>
address: <input type="text" name="address" /><br>
<select name="location">
<option value="0" selected>(please select:)</option>
<option value="center">center</option>
<option value="sharon">sharon</option>
<option value="south">south</option>
<option value="jerusalem">jerusalem</option>
<option value="north">north</option>
<option value="eilat">eilat</option>
</select>
<input type="hidden" name="secret" value="<? echo $secret; ?>" />  

<input type="submit" />
</form>
<?php $_SESSION['hallpass'] = false;?>
</body>
</html> 